projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e65161e
)
[XEND] Used shutil.rename to cope with /tmp and /var on different file systems
author
Tom Wilkie
<tom.wilkie@gmail.com>
Fri, 27 Apr 2007 10:03:47 +0000
(11:03 +0100)
committer
Tom Wilkie
<tom.wilkie@gmail.com>
Fri, 27 Apr 2007 10:03:47 +0000
(11:03 +0100)
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
tools/python/xen/xend/XendDomain.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomain.py
b/tools/python/xen/xend/XendDomain.py
index 144ee16ca61cebe6db2d91220dee7b5953e1162a..00c26039876b373f7dd515696b00f59592a23f12 100644
(file)
--- a/
tools/python/xen/xend/XendDomain.py
+++ b/
tools/python/xen/xend/XendDomain.py
@@
-293,10
+293,12
@@
class XendDomain:
width = 78)
finally:
f.close()
+
try:
-
os.renam
e(fn, self._managed_config_path(dom_uuid))
+
shutil.mov
e(fn, self._managed_config_path(dom_uuid))
except:
- log.exception("Renaming %s" % fn)
+ log.exception("Renaming %s to %s", fn,
+ self._managed_config_path(dom_uuid))
os.remove(fn)
except:
log.exception("Error occurred saving configuration file " +